import { createBrowserRouter, Navigate } from 'react-router-dom';
import App from '../App';
import Serial from '../pages/serial';
import Printer from '../pages/printer';
import Card from '../pages/card';
import Input from '../pages/input'; 
import Camera from '../pages/camera';
import Api from '../pages/api';
import Debug from '../pages/debug';
import Guide from '../pages/guide';
import Md from '../pages/md';
import React from 'react';


const router = createBrowserRouter([
  {
    path: '/',
    // redirectTo: '/home',
    element: <Navigate to='/home' replace />,
  },
  {
    path: '/home',
    element: <App />
  },
  {
    path: '/serial',
    element: <Serial />
  },
  {
    path: '/printer',
    element: <Printer />
  },
  {
    path: '/card',
    element: <Card />
  },
  {
    path: '/input',
    element: <Input />
  },
  {
    path: '/camera',
    element: <Camera />
  },
  {
    path: '/api',
    element: <Api />
  },
  {
    path: '/debug',
    element: <Debug />
  },
  {
    path: '/guide',
    element: <Guide />
  },
  {
    path: '/md',
    element: <Md />
  }
]);

export default router;